package ModelLayer;
import java.util.ArrayList;

public class Category {
    // <editor-fold defaultstate="collapsed" desc="Attributes">
    private int id_category;
    private int id_parent;
    private int level_depth;
    private boolean active;
    private int sort;
    private int date_add;
    private int date_upd;
    private String name;
    private String description;
    private String link_rewrite;
    private String meta_title;
    private String meta_keywords;
    private String meta_description;
    private ArrayList<Integer> productIDs = new ArrayList<Integer>();
    private ArrayList<Integer> discountIDs = new ArrayList<Integer>();
    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="Constructors">
    public Category() {
    }

    public Category(int id_category, int id_parent, int level_depth, boolean active, int sort, int date_add, int date_upd, String name, String description, String link_rewrite, String meta_title, String meta_keywords, String meta_description) {
        this.id_category        = id_category;
        this.id_parent          = id_parent;
        this.level_depth        = level_depth;
        this.active             = active;
        this.sort               = sort;
        this.date_add           = date_add;
        this.date_upd           = date_upd;
        this.name               = name;
        this.description        = description;
        this.link_rewrite       = link_rewrite;
        this.meta_title         = meta_title;
        this.meta_keywords      = meta_keywords;
        this.meta_description   = meta_description;
    }
    // </editor-fold>

    // <editor-fold defaultstate="collapsed" desc="Set & Get Methods">
    //Set & Get: ID
    public void setIDCategory(int id_category) {
        this.id_category = id_category;
    }
    public int getIDCategory() {
        return this.id_category;
    }

    //Set & Get: ID_Parent
    public void setIDParent(int id_parent) {
        this.id_parent = id_parent;
    }
    public int getIDParent() {
        return this.id_parent;
    }

    //Set & Get: Level_Depth
    public void setLevelDepth(int level_depth) {
        this.level_depth = level_depth;
    }
    public int getLevelDepth() {
        return this.level_depth;
    }

    //Set & Get: Active
    public void setActive(boolean active) {
        this.active = active;
    }
    public boolean getActive() {
        return this.active;
    }

    //Set & Get: Sort
    public void setSort(int sort) {
        this.sort = sort;
    }
    public int getSort() {
        return this.sort;
    }

    //Set & Get: Date Add
    public void setDateAdd(int date_add) {
        this.date_add = date_add;
    }
    public int getDateAdd() {
        return this.date_add;
    }

    //Set & Get: Date Upd
    public void setDateUpd(int date_upd) {
        this.date_upd = date_upd;
    }
    public int getDateUpd() {
        return this.date_upd;
    }

    //Set & Get: Name
    public void setName(String name) {
        this.name = name;
    }
    public String getName() {
        return this.name;
    }

    //Set & Get: Description
    public void setDescription(String description) {
        this.description = description;
    }
    public String getDescription() {
        return this.description;
    }

    //Set & Get: Link_Rewrite
    public void setLinkRewrite(String link_rewrite) {
        this.link_rewrite = link_rewrite;
    }
    public String getLinkRewrite() {
        return this.link_rewrite;
    }

    //Set & Get: Meta_Title
    public void setMetaTitle(String meta_title) {
        this.meta_title = meta_title;
    }
    public String getMetaTitle() {
        return this.meta_title;
    }

    //Set & Get: Meta_Keywords
    public void setMetaKeywords(String meta_keywords) {
        this.meta_keywords = meta_keywords;
    }
    public String getMetaKeywords() {
        return this.meta_keywords;
    }

    //Set & Get: Meta_Description
    public void setMetaDescription(String meta_description) {
        this.meta_description = meta_description;
    }
    public String getMetaDescription() {
        return this.meta_description;
    }

    //Set & Get: ProductIDs
    public void setProductIDs(ArrayList<Integer> productIDs) {
        this.productIDs = productIDs;
    }
    public ArrayList<Integer> getProductIDs() {
        return this.productIDs;
    }

    //Set & Get: DiscountIDs
    public void setDiscountIDs(ArrayList<Integer> discountIDs) {
        this.discountIDs = discountIDs;
    }
    public ArrayList<Integer> getDiscountIDs() {
        return this.discountIDs;
    }
    // </editor-fold>
}
